package com.lyw.log.facade;

public class FacadeClient implements  Light{

    private BedRoomLight bedRoomLight = new BedRoomLight();

    private LivingRoomLight livingRoomLight = new LivingRoomLight();

    private HallLight hallLight = new HallLight();

    @Override
    public void on() {
        bedRoomLight.on();
        livingRoomLight.on();
        hallLight.on();
    }

    @Override
    public void off() {
        bedRoomLight.off();
        livingRoomLight.off();
        hallLight.off();
    }
}
